//package com.acwer.drgs.performance.es.config;
//
//import com.acwer.drgs.performance.es.domain.Test;
//import org.springframework.data.elasticsearch.core.event.BeforeConvertCallback;
//import org.springframework.data.elasticsearch.core.mapping.IndexCoordinates;
//import org.springframework.stereotype.Component;
//import java.time.Instant;
//
//@Component
//public class TestBeforeConvertCallback implements BeforeConvertCallback<Test> {
//    @Override
//    public Test onBeforeConvert(Test test, IndexCoordinates indexCoordinates) {
//      test.setCtime(Instant.now());
//        return test;
//    }
//}
